﻿#region Microsoft Reciprocal License (Ms-RL)
/*
				This license governs use of the accompanying software. If you use the software, you accept this license. If you do not accept the license, do not use the software.

				1. Definitions
				The terms "reproduce," "reproduction," "derivative works," and "distribution" have the same meaning here as under U.S. copyright law. A "contribution" is the original software, or any additions or changes to the software. A "contributor" is any person that distributes its contribution under this license. "Licensed patents" are a contributor's patent claims that read directly on its contribution.

				2. Grant of Rights
				(A) Copyright Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free copyright license to reproduce its contribution, prepare derivative works of its contribution, and distribute its contribution or any derivative works that you create.
				(B) Patent Grant- Subject to the terms of this license, including the license conditions and limitations in section 3, each contributor grants you a non-exclusive, worldwide, royalty-free license under its licensed patents to make, have made, use, sell, offer for sale, import, and/or otherwise dispose of its contribution in the software or derivative works of the contribution in the software.

				3. Conditions and Limitations
				(A) Reciprocal Grants- For any file you distribute that contains code from the software (in source code or binary format), you must provide recipients the source code to that file along with a copy of this license, which license will govern that file. You may license other files that are entirely your own work and do not contain code from the software under any terms you choose.
				(B) No Trademark License- This license does not grant you rights to use any contributors' name, logo, or trademarks.
				(C) If you bring a patent claim against any contributor over patents that you claim are infringed by the software, your patent license from such contributor to the software ends automatically.
				(D) If you distribute any portion of the software, you must retain all copyright, patent, trademark, and attribution notices that are present in the software.
				(E) If you distribute any portion of the software in source code form, you may do so only under this license by including a complete copy of this license with your distribution. If you distribute any portion of the software in compiled or object code form, you may only do so under a license that complies with this license.
				(F) The software is licensed "as-is." You bear the risk of using it. The contributors give no express warranties, guarantees or conditions. You may have additional consumer rights under your local laws which this license cannot change. To the extent permitted under your local laws, the contributors exclude the implied warranties of merchantability, fitness for a particular purpose and non-infringement.
				*/
#endregion

using System.Collections.Generic;

namespace Anheledir.XmlDialogEditor {
  public static class XmlSpawnerLibrary {
    public struct XmlAttachment {
      public XmlAttachment( string name, List<string> props ) {
        _name = name;
        _props = props;
      }

      private string _name;

      public string Name {
        get { return _name; }
        set { _name = value; }
      }
      private List<string> _props;

      public List<string> Properties {
        get { return _props; }
      }

      public void addProp( string props ) {
        _props.Add( props );
      }
    }

    public struct XmlCommand {
      public XmlCommand( string name, List<string> props ) {
        _name = name;
        _props = props;
      }

      private string _name;

      public string Name {
        get { return _name; }
        set { _name = value; }
      }
      private List<string> _props;

      public List<string> Properties {
        get { return _props; }
      }

      public void addProp( string props ) {
        _props.Add( props );
      }
    }

    public struct XmlValue {
      public XmlValue( string name, string value ) {
        _name = name;
        _value = value;
      }

      private string _name;

      public string Name {
        get { return _name; }
        set { _name = value; }
      }
      private string _value;

      public string Value {
        get { return _value; }
      }
    }

    public static List<XmlAttachment> XmlAttachments() {
      List<XmlAttachment> l = new List<XmlAttachment>();
      l.Add( new XmlAttachment( "XmlQuestAttachment", new List<string>( new List<string> { "name", "name, expiresin", "name, value, expiresin" } ) ) );
      l.Add( new XmlAttachment( "TemporaryQuestObject", new List<string>( new List<string> { "questname", "questname, expiresin", "questname, expiresin, questowner" } ) ) );
      l.Add( new XmlAttachment( "XmlAddFame", new List<string>( new List<string> { "value" } ) ) );
      l.Add( new XmlAttachment( "XmlAddKarma", new List<string>( new List<string> { "value" } ) ) );
      l.Add( new XmlAttachment( "XmlAddTithing", new List<string>( new List<string> { "value" } ) ) );
      l.Add( new XmlAttachment( "XmlAddVirtue", new List<string>( new List<string> { "virtue, value" } ) ) );
      l.Add( new XmlAttachment( "XmlAnimate", new List<string>( new List<string> { "", "animation", "animation, refractory", "animation, framecount, refractory", "animation, refractory, loopcount, loopdelay", "animation, framecount, refractory, loopcount, loopdelay" } ) ) );
      l.Add( new XmlAttachment( "XmlCustomAttacks", new List<string>( new List<string> { "", "name", "name, nspecials" } ) ) );
      l.Add( new XmlAttachment( "XmlCustomDefenses", new List<string>( new List<string> { "", "name", "name, nspecials" } ) ) );
      l.Add( new XmlAttachment( "XmlData", new List<string>( new List<string> { "name", "name, data", "name, data, expiresin" } ) ) );
      l.Add( new XmlAttachment( "XmlDate", new List<string>( new List<string> { "name", "name, expiresin", "name, value, expiresin" } ) ) );
      l.Add( new XmlAttachment( "XmlDeathAction", new List<string>( new List<string> { "", "action" } ) ) );
      l.Add( new XmlAttachment( "XmlDex", new List<string>( new List<string> { "", "value", "value, duration" } ) ) );
      l.Add( new XmlAttachment( "XmlDialog", new List<string>( new List<string> { "", "ConfigFile" } ) ) );
      l.Add( new XmlAttachment( "XmlEnemyMastery", new List<string>( new List<string> { "enemy", "enemy, increase", "enemy, chance, increase" , "enemy, chance, increase, expiresin"} ) ) );
      l.Add( new XmlAttachment( "XmlFire", new List<string>( new List<string> { "damage", "damage, refractory", "damage, refractory, expiresin" } ) ) );
      l.Add( new XmlAttachment( "XmlFollow", new List<string>( new List<string> { "distance", "distance, expiresin" } ) ) );
      l.Add( new XmlAttachment( "XmlFreeze", new List<string>( new List<string> { "", "seconds" } ) ) );
      l.Add( new XmlAttachment( "XmlHue", new List<string>( new List<string> { "value", "value, duration" } ) ) );
      l.Add( new XmlAttachment( "XmlInt", new List<string>( new List<string> { "", "value", "value, duration" } ) ) );
      l.Add( new XmlAttachment( "XmlIsEnemy", new List<string>( new List<string> { "", "name", "name, test", "name, test, expiresin" } ) ) );
      l.Add( new XmlAttachment( "XmlLifeDrain", new List<string>( new List<string> { "drain", "drain, refractory", "drain, refractory, expiresin" } ) ) );
      l.Add( new XmlAttachment( "XmlLightning", new List<string>( new List<string> { "damage", "damage, refractory", "damage, refractory, expiresin" } ) ) );
      l.Add( new XmlAttachment( "XmlLocalVariable", new List<string>( new List<string> { "name", "name, data", "name, data, expiresin" } ) ) );
      l.Add( new XmlAttachment( "XmlMagicWord", new List<string>( new List<string> { "", "word", "word, duration", "word, duration, refractory", "word, duration, refractory, charges" } ) ) );
      l.Add( new XmlAttachment( "XmlManaDrain", new List<string>( new List<string> { "drain", "drain, refractory", "drain, refractory, expiresin" } ) ) );
      l.Add( new XmlAttachment( "XmlMessage", new List<string>( new List<string> { "msg", "msg, refractory", "msg, refractory, word", "msg, refractory, word, charges" } ) ) );
      l.Add( new XmlAttachment( "XmlMinionStrike", new List<string>( new List<string> { "minion", "minion, chance", "minion, chance, refractory", "minion, chance, refractory, expiresin" } ) ) );
      l.Add( new XmlAttachment( "XmlMorph", new List<string>( new List<string> { "morphID", "morphID, duration", "morphID, duration, word" } ) ) );
      l.Add( new XmlAttachment( "XmlOnStartup", new List<string>( new List<string> { "name", "name, action", "name, action, expiresin" } ) ) );
      l.Add( new XmlAttachment( "XmlQuestPoints", new List<string>( new List<string> { "" } ) ) );
      l.Add( new XmlAttachment( "XmlReleasePet", new List<string>( new List<string> { "chance", "chance, expiresin" } ) ) );
      l.Add( new XmlAttachment( "XmlRestrictEquip", new List<string>( new List<string> { "", "name", "name, test", "name, test, expiresin" } ) ) );
      l.Add( new XmlAttachment( "XmlSaveItem", new List<string>( new List<string> { "", "name" } ) ) );
      l.Add( new XmlAttachment( "XmlSkill", new List<string>( new List<string> { "name, skill", "name, skill, value", "name, skill, value, duration", "name, skill, value, duration, word" } ) ) );
      l.Add( new XmlAttachment( "XmlSocketable", new List<string>( new List<string> { "", "maxsockets" } ) ) );
      l.Add( new XmlAttachment( "XmlSockets", new List<string>( new List<string> { "nsockets", "nsockets, mustaugmentinpack" } ) ) );
      l.Add( new XmlAttachment( "XmlSound", new List<string>( new List<string> { "", "sound", "sound, refractory", "sound, refractory, word", "sound, refractory, word, charges", "sound, refractory, charges" } ) ) );
      l.Add( new XmlAttachment( "XmlStamDrain", new List<string>( new List<string> { "drain", "drain, refractory", "drain, refractory, expiresin" } ) ) );
      l.Add( new XmlAttachment( "XmlStr", new List<string>( new List<string> { "", "value", "value, duration" } ) ) );
      l.Add( new XmlAttachment( "XmlTitle", new List<string>( new List<string> { "name", "name, title", "name, title, expiresin" } ) ) );
      l.Add( new XmlAttachment( "XmlUse", new List<string>( new List<string> { "", "maxuses", "maxuses, refractory" } ) ) );
      l.Add( new XmlAttachment( "XmlValue", new List<string>( new List<string> { "name, value", "name, value, expiresin" } ) ) );
      l.Add( new XmlAttachment( "XmlWeaponAbility", new List<string>( new List<string> { "weaponability", "name, weaponability", "name, weaponability, expiresin" } ) ) );

      return l;
    }
    public static List<XmlCommand> XmlValueKeywords() {
      List<XmlCommand> l = new List<XmlCommand>();
      l.Add( new XmlCommand( "GIVEN", new List<string>( new List<string> { "" } ) ) );
      l.Add( new XmlCommand( "TAKEN", new List<string>( new List<string> { "" } ) ) );
      l.Add( new XmlCommand( "GET", new List<string>( new List<string> { "itemname", "serialno,property", "serialno,itemtype,property", "<ATTACHMENT,type,name,property>" } ) ) );
      l.Add( new XmlCommand( "GETVAR", new List<string>( new List<string> { "varname" } ) ) );
      l.Add( new XmlCommand( "GETONCARRIED", new List<string>( new List<string> { "itemname", "itemname,itemtype", "itemname,itemtype,equippedonly", "itemname,itemtype,equippedonly,property" } ) ) );
      l.Add( new XmlCommand( "GETONNEARBY", new List<string>( new List<string> { "range,name", "range,name,type", "range,name,type,searchcontainers", "range,name,type,searchcontainers,property" } ) ) );
      l.Add( new XmlCommand( "GETONMOB", new List<string>( new List<string> { "mobname", "mobname,mobtype", "mobname,mobtype,property" } ) ) );
      l.Add( new XmlCommand( "GETONGIVEN", new List<string>( new List<string> { "property" } ) ) );
      l.Add( new XmlCommand( "GETONTAKEN", new List<string>( new List<string> { "property" } ) ) );
      l.Add( new XmlCommand( "GETONPARENT", new List<string>( new List<string> { "property" } ) ) );
      l.Add( new XmlCommand( "GETONSPAWN", new List<string>( new List<string> { "subgroup,property", "spawnername,subgroup,property" } ) ) );
      l.Add( new XmlCommand( "GETONSPAWN", new List<string>( new List<string> { "subgroup,COUNT", "spawnername,subgroup,COUNT" } ) ) );
      l.Add( new XmlCommand( "GETONTHIS", new List<string>( new List<string> { "property" } ) ) );
      l.Add( new XmlCommand( "GETONTRIGMOB", new List<string>( new List<string> { "property" } ) ) );
      l.Add( new XmlCommand( "GETONATTACH", new List<string>( new List<string> { "type,property", "type,name,property" } ) ) );
      l.Add( new XmlCommand( "RND", new List<string>( new List<string> { "min,max" } ) ) );
      l.Add( new XmlCommand( "RNDLIST", new List<string>( new List<string> { "int1,int2,..." } ) ) );
      l.Add( new XmlCommand( "RNDSTRLIST", new List<string>( new List<string> { "str1,str2,..." } ) ) );
      l.Add( new XmlCommand( "RNDBOOL", new List<string>( new List<string> { "" } ) ) );
      l.Add( new XmlCommand( "RANDNAME", new List<string>( new List<string> { "nametype" } ) ) );
      l.Add( new XmlCommand( "PLAYERSINRANGE", new List<string>( new List<string> { "range" } ) ) );
      l.Add( new XmlCommand( "AMOUNTCARRIED", new List<string>( new List<string> { "itemtype" } ) ) );
      l.Add( new XmlCommand( "OFFSET", new List<string>( new List<string> { "x,y", "x,y,z" } ) ) );
      l.Add( new XmlCommand( "ANIMATE", new List<string>( new List<string> { "animaction", "animaction,nframes", "animaction,nframes,nrepeat", "animaction,nframes,nrepeat,forward", "animaction,nframes,nrepeat,forward,repeat", "animaction,nframes,nrepeat,forward,repeat,delay" } ) ) );
      l.Add( new XmlCommand( "MSG", new List<string>( new List<string> { "/text", "probability/text" } ) ) );
      l.Add( new XmlCommand( "SENDASCIIMSG", new List<string>( new List<string> { "/text", "probability/text", "probability,hue/text" } ) ) );
      l.Add( new XmlCommand( "SENDMSG", new List<string>( new List<string> { "/text", "probability/text", "probability,hue/text" } ) ) );
      l.Add( new XmlCommand( "SAY", new List<string>( new List<string> { "/text", "probability/text" } ) ) );
      l.Add( new XmlCommand( "SKILL", new List<string>( new List<string> { "skillname" } ) ) );
      l.Add( new XmlCommand( "TRIGSKILL", new List<string>( new List<string> { "skillname" } ) ) );
      l.Add( new XmlCommand( "INC", new List<string>( new List<string> { "value", "min,max" } ) ) );
      l.Add( new XmlCommand( "MUL", new List<string>( new List<string> { "value", "min,max" } ) ) );
      l.Add( new XmlCommand( "ATTACH", new List<string>( new List<string> { "/attachmenttype", "/attachmenttype,args", "probability/attachmenttype", "probability/attachmenttype,args", "/<attachmenttype/property/value/...>", "/<attachmenttype,args/property/value/...>", "probability/<attachmenttype/property/value/...>", "probability/<attachmenttype,args/property/value/...>" } ) ) );
      l.Add( new XmlCommand( "ADD", new List<string>( new List<string> { "/itemtype", "probability/itemtype", "/itemtype,args", "probability/itemtype,args", "/<itemtype/property/value/...>", "/<itemtype,args/property/value/...>", "probability/<itemtype/property/value/...>", "probability/<itemtype,args/property/value/...>" } ) ) );
      l.Add( new XmlCommand( "DELETE", new List<string>( new List<string> { "" } ) ) );
      l.Add( new XmlCommand( "KILL", new List<string>( new List<string> { "" } ) ) );
      l.Add( new XmlCommand( "UNEQUIP", new List<string>( new List<string> { "layer", "layer,delete" } ) ) );
      l.Add( new XmlCommand( "EQUIP", new List<string>( new List<string> { "/itemtype", "probability/itemtype", "/itemtype,args", "probability/itemtype,args", "/<itemtype/property/value/...>", "/<itemtype,args/property/value/...>", "probability/<itemtype/property/value/...>", "probability/<itemtype,args/property/value/...>" } ) ) );

      return l;
    }
    public static List<XmlCommand> XmlKeywords() {
      List<XmlCommand> l = new List<XmlCommand>();
      l.Add( new XmlCommand( "SET", new List<string>( new List<string> { "itemname/property/value/...", "itemname,itemtype/property/value/..." } ) ) );
      l.Add( new XmlCommand( "SETVAR", new List<string>( new List<string> { "varname/value" } ) ) );
      l.Add( new XmlCommand( "SETONMOB", new List<string>( new List<string> { "mobname/property/value", "mobname,mobtype/property/value" } ) ) );
      l.Add( new XmlCommand( "SETONTRIGMOB", new List<string>( new List<string> { "/property/value/..." } ) ) );
      l.Add( new XmlCommand( "SETONTHIS", new List<string>( new List<string> { "/property/value/..." } ) ) );
      l.Add( new XmlCommand( "SETONPARENT", new List<string>( new List<string> { "/property/value/..." } ) ) );
      l.Add( new XmlCommand( "SETONNEARBY", new List<string>( new List<string> { "range,name/property/value/...", "range,name,type/property/value/...", "range,name,type,searchcontainers/property/value/..." } ) ) );
      l.Add( new XmlCommand( "SETONPETS", new List<string>( new List<string> { "range/property/value/..." } ) ) );
      l.Add( new XmlCommand( "SETONCARRIED", new List<string>( new List<string> { "itemname/property/value/...", "itemname,itemtype/property/value/...", "itemname,itemtype,equippedonly/property/value/..." } ) ) );
      l.Add( new XmlCommand( "SETONSPAWN", new List<string>( new List<string> { "subgroup/property/value/...", "spawnername,subgroup/property/value/..." } ) ) );
      l.Add( new XmlCommand( "SETONSPAWNENTRY", new List<string>( new List<string> { "entrystring/property/value/...", "spawnername,entrystring/property/value/..." } ) ) );
      l.Add( new XmlCommand( "SPAWN", new List<string>( new List<string> { "subgroup", "spawnername,subgroup" } ) ) );
      l.Add( new XmlCommand( "DESPAWN", new List<string>( new List<string> { "subgroup", "spawnername,subgroup" } ) ) );
      l.Add( new XmlCommand( "GIVE", new List<string>( new List<string> { "/itemtype", "probability/itemtype", "/<itemtype/property/value/...>", "probability/<itemtype/property/value>" } ) ) );
      l.Add( new XmlCommand( "TAKE", new List<string>( new List<string> { "/itemname", "probability/itemname", "probability,quantity/itemname", "probability,quantity,true/itemname", "probability,quantity,true,itemtype/itemname" } ) ) );
      l.Add( new XmlCommand( "TAKEBYTYPE", new List<string>( new List<string> { "/itemtype", "probability/itemtype", "probability,quantity,true/itemtype" } ) ) );
      l.Add( new XmlCommand( "BROWSER", new List<string>( new List<string> { "url" } ) ) );
      l.Add( new XmlCommand( "MUSIC", new List<string>( new List<string> { "musicname", "musicname,range" } ) ) );
      l.Add( new XmlCommand( "SOUND", new List<string>( new List<string> { "soundvalue" } ) ) );
      l.Add( new XmlCommand( "EFFECT", new List<string>( new List<string> { "itemid,duration", "itemid,duration,x,y,z" } ) ) );
      l.Add( new XmlCommand( "MEFFECT", new List<string>( new List<string> { "itemid", "itemid,speed", "itemid,speed,x,y,z", "itemid,speed,x,y,z,x2,y2,z2" } ) ) );
      l.Add( new XmlCommand( "RESURRECT", new List<string>( new List<string> { "", "range", "PETS", "range,PETS" } ) ) );
      l.Add( new XmlCommand( "POISON", new List<string>( new List<string> { "level", "level,range", "level,playeronly", "level,range,playeronly" } ) ) );
      l.Add( new XmlCommand( "DAMAGE", new List<string>( new List<string> { "dmg,phys,fire,cold,pos,energy", "dmg,phys,fire,cold,pos,energy,range", "dmg,phys,fire,cold,pos,energy,playeronly", "dmg,phys,fire,cold,pos,energy,range,playeronly" } ) ) );
      l.Add( new XmlCommand( "CAST", new List<string>( new List<string> { "spellname", "spellname,arg", "spellnumber", "spellnumber,arg" } ) ) );
      l.Add( new XmlCommand( "SENDMSG", new List<string>( new List<string> { "/text" } ) ) );
      l.Add( new XmlCommand( "BCAST", new List<string>( new List<string> { "/text", "hue/text", "font/text", "hue,font/text" } ) ) );

      return l;
    }
    public static List<XmlCommand> XmlItemtypes() {
      List<XmlCommand> l = new List<XmlCommand>();
      l.Add( new XmlCommand( "ARMOR", new List<string>( new List<string> { "minlevel,maxlevel" } ) ) );
      l.Add( new XmlCommand( "WEAPON", new List<string>( new List<string> { "minlevel,maxlevel" } ) ) );
      l.Add( new XmlCommand( "JARMOR", new List<string>( new List<string> { "minlevel,maxlevel" } ) ) );
      l.Add( new XmlCommand( "JWEAPON", new List<string>( new List<string> { "minlevel,maxlevel" } ) ) );
      l.Add( new XmlCommand( "JEWELRY", new List<string>( new List<string> { "minlevel,maxlevel" } ) ) );
      l.Add( new XmlCommand( "SARMOR", new List<string>( new List<string> { "minlevel,maxlevel" } ) ) );
      l.Add( new XmlCommand( "SHIELD", new List<string>( new List<string> { "minlevel,maxlevel" } ) ) );
      l.Add( new XmlCommand( "POTION", new List<string>( new List<string> { "" } ) ) );
      l.Add( new XmlCommand( "SCROLL", new List<string>( new List<string> { "mincircle,maxcircle" } ) ) );
      l.Add( new XmlCommand( "NECROSCROLL", new List<string>( new List<string> { "index" } ) ) );
      l.Add( new XmlCommand( "LOOT", new List<string>( new List<string> { "methodname" } ) ) );
      l.Add( new XmlCommand( "LOOTPACK", new List<string>( new List<string> { "loottype" } ) ) );
      l.Add( new XmlCommand( "MOB", new List<string>( new List<string> { "name", "name,mobtype" } ) ) );
      l.Add( new XmlCommand( "TRIGMOB", new List<string>( new List<string> { "" } ) ) );

      return l;
    }
    public static List<string> NameList() {
      List<string> l = new List<string>();
      l.Add( "female" );
      l.Add( "male" );
      l.Add( "tokuno male" );
      l.Add( "tokuno female" );
      l.Add( "bird" );
      l.Add( "ancient lich" );
      l.Add( "balron" );
      l.Add( "darknight creeper" );
      l.Add( "impaler" );
      l.Add( "demon knight" );
      l.Add( "shadow knight" );
      l.Add( "fire gargoyle" );
      l.Add( "gargoyle vendor" );
      l.Add( "centaur" );
      l.Add( "ethereal warrior" );
      l.Add( "pixie" );
      l.Add( "savage" );
      l.Add( "savage rider" );
      l.Add( "savage shaman" );
      l.Add( "golem controller" );
      l.Add( "daemon" );
      l.Add( "evil mage lord" );
      l.Add( "evil mage" );
      l.Add( "ratman" );
      l.Add( "lizardman" );
      l.Add( "orc" );

      return l;
    }
    public static List<string> Properties() {
      List<string> l = new List<string>();
      l.Add( "responsestring" );
      l.Add( "Name" );
      l.Add( "GameTime" );
      l.Add( "Glassblowing" );
      l.Add( "KarmaLocked" );
      l.Add( "KnownRecipes" );
      l.Add( "LastEscortTime" );
      l.Add( "LastOnline" );
      l.Add( "SandMining" );
      l.Add( "SolenFriendship" );
      l.Add( "StoneMining" );
      l.Add( "ToggleMiningStone" );
      l.Add( "Young" );
      l.Add( "AccessLevel" );
      l.Add( "Account" );
      l.Add( "Alive" );
      l.Add( "Blessed" );
      l.Add( "BodyValue" );
      l.Add( "CanHearGhosts" );
      l.Add( "CanSwim" );
      l.Add( "CantWalk" );
      l.Add( "ColdResistance" );
      l.Add( "Combatant" );
      l.Add( "Criminal" );
      l.Add( "Dex" );
      l.Add( "EnergyResistance" );
      l.Add( "FacialHairHue" );
      l.Add( "FacialHairItemID" );
      l.Add( "Fame" );
      l.Add( "Female" );
      l.Add( "FireResistance" );
      l.Add( "Followers" );
      l.Add( "FollowersMax" );
      l.Add( "Frozen" );
      l.Add( "HairHue" );
      l.Add( "HairItemID" );
      l.Add( "Hidden" );
      l.Add( "Hits" );
      l.Add( "HitsMax" );
      l.Add( "Hue" );
      l.Add( "HueMod" );
      l.Add( "Hunger" );
      l.Add( "Int" );
      l.Add( "IsBodyMod" );
      l.Add( "Karma" );
      l.Add( "Kills" );
      l.Add( "LightLevel" );
      l.Add( "Location" );
      l.Add( "MagicDamageAbsorb" );
      l.Add( "Mana" );
      l.Add( "ManaMax" );
      l.Add( "Map" );
      l.Add( "MeleeDamageAbsorb" );
      l.Add( "Mount" );
      l.Add( "Mounted" );
      l.Add( "NameMod" );
      l.Add( "Paralyzed" );
      l.Add( "PhysicalResistance" );
      l.Add( "Poisoned" );
      l.Add( "PoisonResistance" );
      l.Add( "Race" );
      l.Add( "RawDex" );
      l.Add( "RawInt" );
      l.Add( "RawName" );
      l.Add( "RawStatTotal" );
      l.Add( "RawStr" );
      l.Add( "Serial" );
      l.Add( "Squelched" );
      l.Add( "Stam" );
      l.Add( "StamMax" );
      l.Add( "StatCap" );
      l.Add( "Str" );
      l.Add( "Thirst" );
      l.Add( "TithingPoints" );
      l.Add( "Title" );
      l.Add( "TotalGold" );
      l.Add( "VirtualArmor" );
      l.Add( "VirtualArmorMod" );
      l.Add( "Warmode" );
      l.Add( "X" );
      l.Add( "Y" );
      l.Add( "Z" );
      l.Add( "Amount" );
      l.Add( "Decays" );
      l.Add( "Direction" );
      l.Add( "ItemID" );
      l.Add( "Layer" );
      l.Add( "LootType" );
      l.Add( "Movable" );
      l.Add( "QuestItem" );
      l.Add( "Visible" );
      l.Add( "Weight" );

      return l;
    }
    public static List<XmlValue> Animations() {
      List<XmlValue> l = new List<XmlValue>();
      l.Add( new XmlValue( "Walk unarmed", "0" ) );
      l.Add( new XmlValue( "Walk armed", "1" ) );
      l.Add( new XmlValue( "Run unarmed", "2" ) );
      l.Add( new XmlValue( "Run armed", "3" ) );
      l.Add( new XmlValue( "Stand", "4" ) );
      l.Add( new XmlValue( "Fidget 3", "5" ) );
      l.Add( new XmlValue( "Fidget 2", "6" ) );
      l.Add( new XmlValue( "Stand for one handed attack", "7" ) );
      l.Add( new XmlValue( "Stand for two handed attack", "8" ) );
      l.Add( new XmlValue( "Attack one handed", "9" ) );
      l.Add( new XmlValue( "Attack unarmed 1", "10" ) );
      l.Add( new XmlValue( "Attack unarmed 2", "11" ) );
      l.Add( new XmlValue( "Attack two handed down", "12" ) );
      l.Add( new XmlValue( "Attack two handed wide", "13" ) );
      l.Add( new XmlValue( "Attack two handed jab", "14" ) );
      l.Add( new XmlValue( "Walk in attack position", "15" ) );
      l.Add( new XmlValue( "Cast directed", "16" ) );
      l.Add( new XmlValue( "Cast area/summon", "17" ) );
      l.Add( new XmlValue( "Attack bow and arrow", "18" ) );
      l.Add( new XmlValue( "Attack crossbow", "19" ) );
      l.Add( new XmlValue( "Take hit", "20" ) );
      l.Add( new XmlValue( "Die 1", "21" ) );
      l.Add( new XmlValue( "Die 2", "22" ) );
      l.Add( new XmlValue( "Horseback ride slow", "23" ) );
      l.Add( new XmlValue( "Horseback ride fast", "24" ) );
      l.Add( new XmlValue( "Horseback stand", "25" ) );
      l.Add( new XmlValue( "Horseback attack", "26" ) );
      l.Add( new XmlValue( "Horseback attack bow and arrow", "27" ) );
      l.Add( new XmlValue( "Horseback attack crossbow", "28" ) );
      l.Add( new XmlValue( "Horseback Horseback slap horse", "29" ) );
      l.Add( new XmlValue( "Turn", "30" ) );
      l.Add( new XmlValue( "Attack unarmed and walk", "31" ) );
      l.Add( new XmlValue( "Bow", "32" ) );
      l.Add( new XmlValue( "Salute", "33" ) );
      l.Add( new XmlValue( "Fidget 3", "34" ) );

      return l;
    }
    public static List<XmlValue> Fonts() {
      List<XmlValue> l = new List<XmlValue>();
      l.Add( new XmlValue( "Big", "0" ) );
      l.Add( new XmlValue( "small light (old)", "1" ) );
      l.Add( new XmlValue( "big light (old)", "2" ) );
      l.Add( new XmlValue( "big bold (old)", "3" ) );
      l.Add( new XmlValue( "Moon", "4" ) );
      l.Add( new XmlValue( "italic grey", "5" ) );
      l.Add( new XmlValue( "small", "6" ) );
      l.Add( new XmlValue( "small bold", "7" ) );
      l.Add( new XmlValue( "Runic", "8" ) );
      l.Add( new XmlValue( "small light", "9" ) );
      l.Add( new XmlValue( "???", "10" ) );

      return l;
    }
    public static List<string> Skills() {
      List<string> l = new List<string>();
      l.Add( "Alchemy" );
      l.Add( "Anatomy" );
      l.Add( "AnimalLore" );
      l.Add( "ItemID" );
      l.Add( "ArmsLore" );
      l.Add( "Parry" );
      l.Add( "Begging" );
      l.Add( "Blacksmith" );
      l.Add( "Fletching" );
      l.Add( "Peacemaking" );
      l.Add( "Camping" );
      l.Add( "Carpentry" );
      l.Add( "Cartography" );
      l.Add( "Cooking" );
      l.Add( "DetectHidden" );
      l.Add( "Discordance" );
      l.Add( "EvalInt" );
      l.Add( "Healing" );
      l.Add( "Fishing" );
      l.Add( "Forensics" );
      l.Add( "Herding" );
      l.Add( "Hiding" );
      l.Add( "Provocation" );
      l.Add( "Inscribe" );
      l.Add( "Lockpicking" );
      l.Add( "Magery" );
      l.Add( "MagicResist" );
      l.Add( "Snooping" );
      l.Add( "Musicianship" );
      l.Add( "Poisoning" );
      l.Add( "Archery" );
      l.Add( "SpiritSpeak" );
      l.Add( "Stealing" );
      l.Add( "Tailoring" );
      l.Add( "AnimalTaming" );
      l.Add( "TasteID" );
      l.Add( "Tinkering" );
      l.Add( "Tracking" );
      l.Add( "Veterinary" );
      l.Add( "Swords" );
      l.Add( "Macing" );
      l.Add( "Fencing" );
      l.Add( "Wrestling" );
      l.Add( "Lumberjacking" );
      l.Add( "Mining" );
      l.Add( "Meditation" );
      l.Add( "Stealth" );
      l.Add( "RemoveTrap" );
      l.Add( "Necromancy" );
      l.Add( "Focus" );
      l.Add( "Chivalry" );
      l.Add( "Bushido" );
      l.Add( "Ninjitsu" );
      l.Add( "Spellweaving" );

      return l;
    }
  }
}
